package com.qfedu.buy.server.controller;

import com.qfedu.buy.server.entity.Userlook;
import com.qfedu.buy.server.service.intf.UserlookService;
import com.qfedu.buy.server.vo.R;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: NeighborBuy
 * @description: 邻里购真正意义上最懂你的新零售平台
 * @author: Feri(老邢)
 * @create: 2021-01-26 14:22:27
 */
@RestController
@RequestMapping("api/userlook/")
public class UserlookController{
    /*
    *注入业务逻辑层对象*/
    @Autowired
    private UserlookService service;
    /*
    * 新增内容*/

    @PostMapping("save.do")
    public R save(@RequestBody Userlook userlook){
       return service.save(userlook);
    }
    /*
    * 查询 所有数据*/

    @GetMapping("all.do")
    public R all(){
       return service.queryAll();
    }
}